using System;
using System.Collections.Generic;
using System.Text;

namespace VirusScannerCMDLine
{
    class Program
    {
        static void Main(string[] args)
        {
            if (System.IO.File.Exists(@"C:\Documents and Settings\Brett Barnett\Desktop\viruses.db"))
            {
                Brett.VirusDatabase _virusDatabase = new Brett.VirusDatabase(@"C:\Documents and Settings\Brett Barnett\Desktop\viruses.db");

                string[] files = System.IO.Directory.GetFiles(@"c:\windows", "*", System.IO.SearchOption.AllDirectories);
                foreach (string file in files)
                {
                    Console.WriteLine("Scanning: " + file);
                    string result = _virusDatabase.ScanForVirus(file);
                    if (!result.Equals(string.Empty))
                    {
                        Console.WriteLine("\v" + file + " is infected with " + result);
                        Console.WriteLine("Press any key to continue scan");
                        Console.Read();
                    }
                }
            }
            Console.Read();
        }
    }
}
